package com.jufa_3.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class ComboOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String openId;

    private String comboName;

    private LocalDateTime buyTime;

    private Float buyPrice;

    private Float surpulsValue;

    private LocalDateTime useEndTime;

    private String outTradeNo;

    private String userEnable;

    private String enable;

    public ComboOrder(String openId, String comboName, LocalDateTime buyTime, Float buyPrice, Float surpulsValue, LocalDateTime useEndTime, String outTradeNo) {
        this.openId = openId;
        this.comboName = comboName;
        this.buyTime = buyTime;
        this.buyPrice = buyPrice;
        this.surpulsValue = surpulsValue;
        this.useEndTime = useEndTime;
        this.outTradeNo = outTradeNo;
    }

    public ComboOrder(String openId, String comboName, LocalDateTime buyTime, Float buyPrice, Float surpulsValue, LocalDateTime useEndTime) {
        this.openId = openId;
        this.comboName = comboName;
        this.buyTime = buyTime;
        this.buyPrice = buyPrice;
        this.surpulsValue = surpulsValue;
        this.useEndTime = useEndTime;
    }
}
